<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>影院详情ysc</title>

    <!-- Bootstrap -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" rel="stylesheet">

    <!-- HTML5 shim 和 Respond.js 是为了让 IE8 支持 HTML5 元素和媒体查询（media queries）功能 -->
    <!-- 警告：通过 file:// 协议（就是直接将 html 页面拖拽到浏览器中）访问页面时 Respond.js 不起作用 -->
    <!--[if lt IE 9]>
    <script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
    <![endif]-->

    <!--引入字体图标相关的样式文件-->
    <link href="//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <!--引入头部css样式-->
    <link href="css/header.css" rel="stylesheet">


</head>
<body>
<myheader :user="user" :index="index" :set="set"></myheader>
<hr>

<div id="main_div"  class="container" style="width: auto;height: 1850px;padding: 0">
    <div class="container" style="width: 1160px;height: 1350px;padding: 0">
        <!--轮播图开始-->
        <div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
            <!-- Indicators -->
            <ol class="carousel-indicators">
                <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
                <li data-target="#carousel-example-generic" data-slide-to="1"></li>
                <li data-target="#carousel-example-generic" data-slide-to="2"></li>
            </ol>
            <!-- Wrapper for slides -->
            <div class="carousel-inner" role="listbox">
                <div class="item active">
                    <img src="images/cinema/002.jpg" alt="...">
                    <div class="carousel-caption">
                    </div>
                </div>
                <div class="item">
                    <img src="images/cinema/003.jpg" alt="...">
                    <div class="carousel-caption">
                    </div>
                </div>
                <div class="item">
                    <img src="images/cinema/004.jpg" alt="...">
                    <div class="carousel-caption">
                    </div>
                </div>
                <div class="item">
                    <img src="images/cinema/001.jpg" alt="...">
                    <div class="carousel-caption">
                    </div>
                </div>
            </div>
            <!-- Controls -->
            <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
                <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
                <span class="sr-only">Previous</span>
            </a>
            <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
                <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
                <span class="sr-only">Next</span>
            </a>
        </div>
        <!--轮播图结束-->
        <hr>

        <p class="glyphicon glyphicon-stats" style="color: red;font-size: 20px;">影院列表</p>

        <div v-for="c in cinema_arr" style="width: auto;height: 100px;padding: 0">
            <hr>
            <div style="width: auto;height: 80px">
                <div id="left" style="float: left;width: 500px;height: 100px">
                    <p style="font-size: 15px;font-weight: bold"><a :href="'/cinema_show.html?id='+c.id">{{c.name}}</a></p>
                    <p style="font-size: 10px">地址:{{c.address}}</p>
                    <span class="label label-default">{{c.label1}}</span>
                    <span class="label label-primary">{{c.label2}}</span>
                    <span class="label label-success">{{c.label3}}</span>
                    <span class="label label-info">{{c.label4}}</span>
                    <span class="label label-warning">{{c.label5}}</span>
                    <span class="label label-danger">{{c.label6}}</span>
                </div>
                <div id="right" style="float: right;width: 180px;height: 100px">
                    <div style="float: left;margin-top: 20px">
                        <p style="color: red;font-size: 15px">¥{{c.minPrice}}元起</p>
                        <p class="glyphicon glyphicon-map-marker">{{c.distance}}km</p>
                    </div>
                    <div style="float: right;margin-top: 30px">
                        <a :href="'/cinema_show.html?id='+c.id">
                            <button type="button" class="btn btn-danger" style="border-radius: 8px;">选片购票</button>
                        </a>
                    </div>
                </div>
            </div>
            <hr>
        </div>
        <br>
        <div style="width: auto;height: 50px;margin-top: 20px">
            <button type="button" class="btn btn-info" style="width: 200px; margin-left: 43%">下一页</button>
        </div>

    </div>
</div>
<myend></myend>

<!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
<script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js"></script>
<!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"></script>

<!--引入axios框架-->
<script src="https://cdn.bootcdn.net/ajax/libs/axios/0.21.1/axios.min.js"></script>
<!--引入vue框架-->
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
<!--引入头部自定义导航栏,一定要放在vue.js后面-->
<script src="js/header.js"></script>
<!--引入尾部js模板,一定要放在vue.js后面-->
<script src="js/end.js"></script>

<script>
    let cinema_v = new Vue({
        el:"#main_div",
        data:{
            cinema_arr:[],
            Cinema:{},
            user:{}
        },
        created:function () {
            axios.get("/getCinema").then(function (response) {
                cinema_v.cinema_arr = response.data;
            })
            axios.get("/currentUser").then(function (response) {
                cinema_v.user = response.data==""?null:response.data;
            })
        }
    })

    $('#carousel-example-generic').carousel('cycle');
</script>

</body>
</html>